
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGDepthChunk.h>
#include <OpenSG/OSGDepthChunkBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_DepthChunk_dump_overloads_0_2, dump, 0, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_DepthChunk_activate_overloads_1_2, activate, 1, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_DepthChunk_changeFrom_overloads_2_3, changeFrom, 2, 3)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_DepthChunk_deactivate_overloads_1_2, deactivate, 1, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_DepthChunk()
{
    scope* osg_DepthChunkBase_scope = new scope(
    class_< osg::DepthChunkBase, bases< osg::StateChunk > , boost::noncopyable >("DepthChunkBase", no_init)
//        .def_readonly("EnableFieldMask", &osg::DepthChunkBase::EnableFieldMask)
//        .def_readonly("FuncFieldMask", &osg::DepthChunkBase::FuncFieldMask)
//        .def_readonly("NearFieldMask", &osg::DepthChunkBase::NearFieldMask)
//        .def_readonly("FarFieldMask", &osg::DepthChunkBase::FarFieldMask)
//        .def_readonly("ReadOnlyFieldMask", &osg::DepthChunkBase::ReadOnlyFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::DepthChunkBase::MTInfluenceMask)
        .def("getClassType", &osg::DepthChunkBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::DepthChunkBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::DepthChunkBase::*)() )&osg::DepthChunkBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::DepthChunkBase::*)() const)&osg::DepthChunkBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::DepthChunkBase::getContainerSize)
        //.def("getEnable", (bool& (osg::DepthChunkBase::*)() )&osg::DepthChunkBase::getEnable, return_value_policy< copy_const_reference >())
        .def("getEnable", (const bool& (osg::DepthChunkBase::*)() const)&osg::DepthChunkBase::getEnable, return_value_policy< copy_const_reference >())
        //.def("getFunc", (GLenum& (osg::DepthChunkBase::*)() )&osg::DepthChunkBase::getFunc, return_value_policy< copy_const_reference >())
        .def("getFunc", (const GLenum& (osg::DepthChunkBase::*)() const)&osg::DepthChunkBase::getFunc, return_value_policy< copy_const_reference >())
        //.def("getNear", (osg::Real32& (osg::DepthChunkBase::*)() )&osg::DepthChunkBase::getNear, return_value_policy< copy_const_reference >())
        .def("getNear", (const osg::Real32& (osg::DepthChunkBase::*)() const)&osg::DepthChunkBase::getNear, return_value_policy< copy_const_reference >())
        //.def("getFar", (osg::Real32& (osg::DepthChunkBase::*)() )&osg::DepthChunkBase::getFar, return_value_policy< copy_const_reference >())
        .def("getFar", (const osg::Real32& (osg::DepthChunkBase::*)() const)&osg::DepthChunkBase::getFar, return_value_policy< copy_const_reference >())
        //.def("getReadOnly", (bool& (osg::DepthChunkBase::*)() )&osg::DepthChunkBase::getReadOnly, return_value_policy< copy_const_reference >())
        .def("getReadOnly", (const bool& (osg::DepthChunkBase::*)() const)&osg::DepthChunkBase::getReadOnly, return_value_policy< copy_const_reference >())
        .def("setEnable", &osg::DepthChunkBase::setEnable)
        .def("setFunc", &osg::DepthChunkBase::setFunc)
        .def("setNear", &osg::DepthChunkBase::setNear)
        .def("setFar", &osg::DepthChunkBase::setFar)
        .def("setReadOnly", &osg::DepthChunkBase::setReadOnly)
        .def("getBinSize", &osg::DepthChunkBase::getBinSize)
        .def("copyToBin", &osg::DepthChunkBase::copyToBin)
        .def("copyFromBin", &osg::DepthChunkBase::copyFromBin)
        .def("create", &osg::DepthChunkBase::create)
        .def("createEmpty", &osg::DepthChunkBase::createEmpty)
        .def("shallowCopy", &osg::DepthChunkBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("EnableFieldId") = (int)osg::DepthChunkBase::EnableFieldId;
    scope().attr("ReadOnlyFieldId") = (int)osg::DepthChunkBase::ReadOnlyFieldId;
    scope().attr("FarFieldId") = (int)osg::DepthChunkBase::FarFieldId;
    scope().attr("NextFieldId") = (int)osg::DepthChunkBase::NextFieldId;
    scope().attr("FuncFieldId") = (int)osg::DepthChunkBase::FuncFieldId;
    scope().attr("NearFieldId") = (int)osg::DepthChunkBase::NearFieldId;

    delete osg_DepthChunkBase_scope;

    class_< osg::DepthChunk, bases< osg::DepthChunkBase > , boost::noncopyable, osg::DepthChunkRefPtr >("DepthChunk", no_init)
        .def("getStaticClassId", &osg::DepthChunk::getStaticClassId)
        .def("changed", &osg::DepthChunk::changed)
        .def("dump", &osg::DepthChunk::dump, osg_DepthChunk_dump_overloads_0_2())
        .def("activate", &osg::DepthChunk::activate, osg_DepthChunk_activate_overloads_1_2())
        .def("changeFrom", &osg::DepthChunk::changeFrom, osg_DepthChunk_changeFrom_overloads_2_3())
        .def("deactivate", &osg::DepthChunk::deactivate, osg_DepthChunk_deactivate_overloads_1_2())
        .def("switchCost", &osg::DepthChunk::switchCost)
        .staticmethod("getStaticClassId")
        //.def( self < other< osg::StateChunk >() )
        //.def( self == other< osg::StateChunk >() )
        //.def( self != other< osg::StateChunk >() )
    ;


    register_ptr_to_python<osg::DepthChunkPtr>();
    implicitly_convertible<osg::DepthChunkRefPtr, osg::DepthChunkPtr>();
    implicitly_convertible<osg::DepthChunkPtr, osg::StateChunkPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::DepthChunkPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::DepthChunkPtr>);
}

